package com.nefu.huiyi.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import  com.nefu.huiyi.entity.Doctor;

import java.util.List;


public interface DoctorService {
    // 新增医师
    Doctor saveDoctor(Doctor doctor);

    // 根据ID删除医师
    boolean deleteDoctor(Integer id);

    // 更新医师信息
    Doctor updateDoctor(Doctor doctor);

    // 根据ID查询医师
    Doctor getDoctorById(Integer id);

    //查询所有医师
    List<Doctor> findAll();

    // 分页查询医师列表
    IPage<Doctor> getDoctorPage(Page<Doctor> page, String keyword);


}